package com.qqin.mapper;

import com.qqin.pojo.Order;
import com.qqin.pojo.dto.OrderSynthesis;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> selectAll();
    Order selectById(Integer orderId);
    List<Order> selectByUser(Integer userId);
    List<OrderSynthesis> selectSynthesis(Integer userId);
    List<Order> selectByAny(Order order);
    void add(Order order);
    void updateById(Order order);
    void pay(Integer orderId);
    void cancel(Integer orderId);

}
